package com.ss.test10;

import java.util.TreeSet;

/**
 * @Auther: 520ljs
 * @Date: 2022/3/17 - 03 - 17 - 20:33
 */
public class Test03 {
    //这是一个main方法，是程序的入口
    public static void main(String[] args) {
        //创建一个TreeSet:
        TreeSet<Student> ts = new TreeSet<>();
        ts.add(new Student(10,"elili"));
        ts.add(new Student(8,"alili"));
        ts.add(new Student(4,"blili"));
        ts.add(new Student(9,"clili"));
        ts.add(new Student(10,"dlili"));
        ts.add(new Student(1,"elili"));
        ts.add(new Student(13,"flili"));
        System.out.println(ts.size());
        System.out.println(ts);
    }
}
